Use new do_without_error function to squelch the errors when closing down an
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 9 Dec 2005 10:50:49 +0000 (10:50 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 9 Dec 2005 10:50:49 +0000 (10:50 +0000)
interface.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-bridge

index e816c8146a150c9d4bf7428252719a1f7a14b2a7..27e2b23a3aa2d54acf8bb147e26dc5bd87a3f450 100755 (executable)
@@ -61,9 +61,8 @@ case "$command" in
         ;;
 
     offline)
-        brctl delif "$bridge" "$vif" ||
-          log debug "brctl delif $bridge $vif failed"
-        ifconfig "$vif" down || log debug "ifconfig $vif down failed"
+        do_without_error brctl delif "$bridge" "$vif"
+        do_without_error ifconfig "$vif" down
         ;;
 esac